package com.wangsh.usersCenter.users.dao;

import java.util.Map;

import com.wangsh.usersCenter.common.dao.IBaseDao;
import com.wangsh.usersCenter.common.pojo.ApiResponse;
import com.wangsh.usersCenter.users.pojo.AAdmins;
import com.wangsh.usersCenter.users.pojo.AMenu;



public interface IAAdminsDao extends IBaseDao <AAdmins>
{

	AAdmins login (Map<String, Object> condMap); 
	
	
	AAdmins findOneAdmins(Map<String, Object> condMap);
	/**
	 * 重置密码->查询是否存在用户名
	 * @param str
	 * @return
	 */
	AAdmins findOneByName(String str);
	/**
	 * 获取角色权限
	 * @param condMap
	 * @return
	 */
	ApiResponse<AMenu> getPermission(Map<String, Object> condMap); 
	
}
